from Products.ATContentTypes.content import folder
from Products.ATContentTypes.content import image
from Products.ATContentTypes.content import base
from Products.Fotolog import PROJECT_NAME

class Album(folder.ATFolder):
    portal_type = meta_type = 'Album'
    archetype_name = 'Album de Fotos'

    immediate_view = 'atct_album_view'
    default_view = 'atct_album_view'
    suppl_views = ('atct_album_view', 'folder_summary_view','fotos.html')

    def listar_fotos(self):
        return self.objectValues('ATImage')

base.registerATCT(Album, PROJECT_NAME)
